<?php

namespace AdminsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CategoryAttribute
 *
 * @ORM\Table(name="category_attribute")
 * @ORM\Entity(repositoryClass="AdminsBundle\Repository\CategoryAttributeRepository")
 */
class CategoryAttribute
{
    /**
     * @var int
     *
     * @ORM\Column(name="category_attr_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="category_id", type="integer")
     */
    private $cid;

    /**
     * @var string
     *
     * @ORM\Column(name="category_attr_name", type="string", length=255)
     */
    private $attrName;

    /**
     * @var string
     *
     * @ORM\Column(name="category_attr_parent", type="string", length=255)
     */
    private $attrParent = 0;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set cid
     *
     * @param integer $cid
     *
     * @return CategoryAttribute
     */
    public function setCid($cid)
    {
        $this->cid = $cid;

        return $this;
    }

    /**
     * Get cid
     *
     * @return int
     */
    public function getCid()
    {
        return $this->cid;
    }

    /**
     * Set attrName
     *
     * @param string $attrName
     *
     * @return CategoryAttribute
     */
    public function setAttrName($attrName)
    {
        $this->attrName = $attrName;

        return $this;
    }

    /**
     * Get attrName
     *
     * @return string
     */
    public function getAttrName()
    {
        return $this->attrName;
    }

    /**
     * Set attrParent
     *
     * @param string $attrParent
     *
     * @return CategoryAttribute
     */
    public function setAttrParent($attrParent)
    {
        $this->attrParent = $attrParent;

        return $this;
    }

    /**
     * Get attrParent
     *
     * @return string
     */
    public function getAttrParent()
    {
        return $this->attrParent;
    }
}

